#version 120

varying vec2 texcoord;
uniform vec4 color;
uniform sampler2D t;
uniform vec2 st1offset;
uniform vec2 st2offset;

 void main()
 {
 	
 	gl_FragColor = texture2D( t, st1offset.xy + ( ( st2offset.xy - st1offset.xy ) * texcoord ) ) * color;

 }
 